#include <iostream>
#include <cmath>
#include <iomanip>
#include <cstring>
using namespace std;
#define MAXN 100
class HighNum
{
private:
    int s1[MAXN], s2[MAXN];
    int s[MAXN];
    int maxLen;
    char a;

public:
    HighNum() {}
    HighNum(char *s1, char *s2)
    {
        memset(this->s1, 0, sizeof(this->s1));
        memset(this->s2, 0, sizeof(this->s2));
        memset(s, 0, sizeof(s));
        maxLen = strlen(s1);
        // cout << maxLen << endl;

        {
            maxLen = strlen(s2);
        }
        int cnt = strlen(s1) - 1;
        for (int i = MAXN - 1; i > MAXN - strlen(s1) - 1; i--)
        {
            this->s1[i] = int(s1[cnt] - '0');
            cnt--;
            // cout << this->s1[i];
        }
        cnt = strlen(s2) - 1;
        for (int i = MAXN - 1; i > MAXN - strlen(s2) - 1; i--)
        {
            // cout << 10 << endl;
            this->s2[i] = int(s2[cnt] - '0');
            cnt--;
            // cout << this->s2[i];
        }
        // cout << s1[99] << endl;
    }
    void add()
    {
        // cout << 2 << endl;
        for (int i = MAXN - 1; i >= MAXN - maxLen - 1; i--)
        {
            s[i] += (s1[i] + s2[i]);
            s[i - 1] = s[i] / 10;
            s[i] = s[i] % 10;
            // cout << i << " " << s[i] << endl;
        }
        // cout << s[99] << endl;
    }
    void print()
    {
        // cout << "1" << endl;
        int cnt = 0;
        for (int i = 0; i < MAXN; i++)
        {
            if (s[i] == 0 && cnt == 0)
            {
                continue;
            }
            cnt++;
            cout << s[i];
        }
        // cout << cnt << endl;
        //  cout << s[99] << endl;
    }
};

int main()
{
    char s1[100], s2[100];
    cin >> s1 >> s2;
    if (!strcmp(s1, s2) && (*s1 == '0'))
    {
        cout << "0";
        return 0;
    }
    if (s1[0] == '-' && s2[0] == '-')
    {
        s1[0] = '0';
        s2[0] = '0';
        HighNum hn(s1, s2);
        hn.add();
        cout << '-';
        hn.print();
    }
    else
    {
        HighNum hn(s1, s2);
        hn.add();
        hn.print();
    }
    return 0;
}

/*

*/